const router = require('express').Router();
const upload = require('../utils/upload')
router.get('/upload',(req,res)=>{
    res.render('upload')
})

router.post('/upload',upload.single('img'),(req,res)=>{
    res.send("上传成功")
})

module.exports = router